import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/home",
      name: "home",
      component: () => import("../views/Home.vue"),
    },
    {
      path: "/download",
      name: "download",
      component: () => import("../views/Download.vue"),
    },
    {
      path: "/login",
      name: "login",
      component: () => import("../views/Login.vue"),
    },
    {
      path: "/analyze",
      name: "analyze",
      component: () => import("../views/Analyze.vue"),
    },
    {
      path: "/algae/detail",
      name: "AlgaeDetail",
      component: () => import("@/views/Home.vue"), // 保持使用Home组件
    },
  ],
  
});



export default router;
